home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / msql-1.0.6 / src / common / debug.h < prev    next >
C/C++ Source or Header  |  1995-02-07  |  911b  |  39 lines

  1. /*
  2. **    debug.h    -     definitions for the debugger
  3. **
  4. **
  5. ** Copyright (c) 1993  David J. Hughes
  6. **
  7. ** Permission to use, copy, and distribute for non-commercial purposes,
  8. ** is hereby granted without fee, providing that the above copyright
  9. ** notice appear in all copies and that both the copyright notice and this
  10. ** permission notice appear in supporting documentation.
  11. **
  12. ** This software is provided "as is" without any expressed or implied warranty.
  13. **
  14. ** ID = "debug.h,v 1.3 1994/08/19 08:02:56 bambi Exp"
  15. */
  16.  
  17.  
  18. #define    MOD_CACHE    1
  19. #define MOD_QUERY    2
  20. #define    MOD_KEY        4
  21. #define    MOD_ERR        8
  22. #define MOD_GENERAL    16
  23. #define MOD_TRACE    32
  24. #define MOD_MALLOC    64
  25. #define MOD_MMAP    128
  26. #define MOD_ACCESS    256
  27.  
  28. #define TRACE_IN    1
  29. #define TRACE_OUT    2
  30.  
  31. void    _msqlDebug();
  32. void    _msqlTraced();
  33. void    initDebug();
  34.  
  35. extern    int debugLevel;
  36.  
  37. #define    msqlDebug    if(debugLevel) _msqlDebug
  38. #define    msqlTrace    if(debugLevel) _msqlTrace
  39.